home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Applications / Quotes 1.0 / src / window.h < prev   
Encoding:
C/C++ Source or Header  |  1995-12-09  |  613 b   |  32 lines  |  [TEXT/KAHL]

  1. #include "document.h"
  2.  
  3. class QuotesWindow {
  4. public:
  5.     int count(void) const;
  6.     int current(void) const;
  7.     Boolean save(void) const;
  8.     void select(int);
  9.     void first(void);
  10.     void previous(void);
  11.     void next(void);
  12.     void last(void);
  13.     void some(void);
  14.     void copy(void);
  15.     void speak(void);
  16.     WindowPtr window(void) const;
  17.     void invalidate(void); // force a redraw
  18.     void draw(void);
  19.     short voice;
  20.     QuotesWindow(QuotesDocument *, OSErr&);
  21.     ~QuotesWindow(void);
  22.     short font;
  23.     short size;
  24. private:
  25.     QuotesDocument *pqd;
  26.     int iQuote;
  27.     unsigned char *pchQuote;
  28.     WindowPtr pwin;
  29.     TEHandle hteQuote;
  30.     ControlHandle hctrlVScroll;
  31. };
  32.